package com.yanmaohu.yulia.statement;

import com.yanmaohu.yulia.bean.SqlDiagnosticsInformation;

/**
 * @author Bright Lee
 */
public final class GetDiagnosticsStatement implements SqlExecutableStatement, Statement {

    private int beginIndex;
    private int endIndex;
    private SqlDiagnosticsInformation sqlDiagnosticsInformation;

    public GetDiagnosticsStatement(int beginIndex, SqlDiagnosticsInformation sqlDiagnosticsInformation) {
        this.beginIndex = beginIndex;
        this.endIndex = sqlDiagnosticsInformation.getEndIndex();
        this.sqlDiagnosticsInformation = sqlDiagnosticsInformation;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public SqlDiagnosticsInformation getSqlDiagnosticsInformation() {
        return sqlDiagnosticsInformation;
    }

}
